from py_page.base_page import BasePage


class GoodsDetail(BasePage):
    # yaml_path = r"D:\PythonCoding\需要敲代码框架\32\WebUIFram\py_yaml\goods_detial_page.yaml"
    yaml_path = BasePage.get_yaml_path("goods_detial_page.yaml")

    def click_buy_now(self):  # 立即购买
        self.run_steps(self.yaml_path,"click_buy_now")
        return self

    def click_alert_yes(self):
        self.run_steps(self.yaml_path,"click_alert_yes")


if __name__ == '__main__':
    print(GoodsDetail(11).yaml_path)